<%-- 
    Document   : konfirmasi_daftar
    Created on : Nov 2, 2012, 11:00:23 PM
    Author     : Acer
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
         <table border='4' align='center' width='1500px'> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       
    </head>
    <body>
         
        <jsp:useBean id="dft" scope="session" class="model.daftar"/>
        <jsp:setProperty name="dft" property="nama" value="${param.nama}"/>
        <jsp:setProperty name="dft" property="bi" value="${param.bi}"/>
        <jsp:setProperty name="dft" property="bing" value="${param.bing}"/>
        <jsp:setProperty name="dft" property="mtk" value="${param.mtk}"/>
        <jsp:setProperty name="dft" property="ipa" value="${param.ipa}"/>
        <jsp:setProperty name="dft" property="jml" value="${param.jml}"/>


    <tr>
        <td>
            Saudara/i <b><jsp:getProperty name="dft" property="nama"/></b> dengan NEM <b><jsp:getProperty name="dft" property="jml"/></b>
            sudah terdaftar sebagai calon murid baru di SMA Sanata Dharma. <br>
            Kode Test anda sebagai berikut: 

            <script language="javascript" type="text/javascript">
                function randomString() {
                    var chars = "aB1";
                    var string_length = 3;
                    var randomstring = '';
                    for (var i=0; i<string_length; i++) {
                        var rnum = Math.floor(Math.random() * chars.length);
                        randomstring += chars.substring(rnum,rnum+1);
                    }
                    document.randform.randomfield.value = randomstring;
                }
            </script>
            <form name="randform">
                <input type="button" value="Kode Test" onClick="randomString();">&nbsp;
                <input type="text" name="randomfield" value="">

              
            </form>
        </td>
    </tr>
         </table>

</body>
</html>
